package net.csdn.business.common.domain.request.milepost;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author likun
 * @date 2023/1/4 11:21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MilepostChangeStatusDTO implements Serializable {

    /** 组织ID/仓库ID */
    @NotBlank(message = "sourceId不能为空")
    private String sourceId;
    /** 1:组织；2:仓库 */
    @NotNull(message = "sourceType不能为空")
    @Range(min = 1, max = 2, message = "sourceType不合法")
    private Integer sourceType;
    @NotBlank(message = "assignUser 不合法")
    private String goalId;
    @NotNull(message = "status 不能为空")
    @Range(min = 1, max = 2, message = "status 不合法")
    private Integer status;


    /**
     * 当前用户ID
     */
    private String crrUserId;
}